const Express = require('express');
const router = Express();

const userRouter = require('./mp/user');
const categoryRouter = require('./mp/category');
const productRouter = require('./mp/product');
const orderRouter = require('./mp/order');
const promoteRouter = require('./mp/promote');
const creditRouter = require('./mp/credit');
const chargeRouter = require('./mp/charge');

router.use('/user', userRouter);
router.use('/category', categoryRouter);
router.use('/product', productRouter);
router.use('/order', orderRouter);
router.use('/promote', promoteRouter);
router.use('/credit', creditRouter);
router.use('/charge', chargeRouter);

module.exports = {
    basePath: '/mp',
    router: router
};
